home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 July: Mac OS SDK / Dev.CD Jul 96 SDK / Dev.CD Jul 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / Nothing / Sources / Frame.cpp < prev    next >
Encoding:
Text File  |  1996-04-25  |  2.1 KB  |  76 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.cpp
  4. //    Release Version:    $ ODF 1 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #include "Frame.h"
  12. #endif
  13.  
  14. #ifndef PART_H
  15. #include "Part.h"
  16. #endif
  17.  
  18. // ----- Framework Includes -----
  19.  
  20. #ifndef FWUTIL_H
  21. #include "FWUtil.h"
  22. #endif
  23.  
  24. #ifndef FWCONTXT_H
  25. #include "FWContxt.h"
  26. #endif
  27.  
  28. #ifndef FWRECSHP_H
  29. #include "FWRecShp.h"
  30. #endif
  31.  
  32. //========================================================================================
  33. //    Runtime informations
  34. //========================================================================================
  35.  
  36. #ifdef FW_BUILD_MAC
  37. #pragma segment odfnothing
  38. #endif
  39.  
  40. //========================================================================================
  41. //    CLASS CNothingFrame
  42. //========================================================================================
  43.  
  44. FW_DEFINE_AUTO(CNothingFrame)
  45.  
  46. //----------------------------------------------------------------------------------------
  47. //     CNothingFrame::CNothingFrame
  48. //----------------------------------------------------------------------------------------
  49.  
  50. CNothingFrame::CNothingFrame(Environment* ev, ODFrame* odFrame, FW_CPresentation* presentation, FW_CPart* part) :
  51.     FW_CFrame(ev, odFrame, presentation, part)
  52. {
  53.     FW_END_CONSTRUCTOR
  54. }
  55.  
  56. //----------------------------------------------------------------------------------------
  57. //     CNothingFrame::~CNothingFrame
  58. //----------------------------------------------------------------------------------------
  59.  
  60. CNothingFrame::~CNothingFrame()
  61. {
  62.     FW_START_DESTRUCTOR
  63. }
  64.  
  65. //----------------------------------------------------------------------------------------
  66. //     CNothingFrame::Draw
  67. //----------------------------------------------------------------------------------------
  68.  
  69. void CNothingFrame::Draw(Environment* ev, ODFacet* odFacet, ODShape* invalidShape)
  70. {
  71.     FW_CViewContext fc(ev, this, odFacet, invalidShape);
  72.  
  73.     FW_CRect box = GetBounds(ev);    
  74.     FW_CRectShape::RenderRect(fc, box, FW_kFill, FW_kRGBBlue);
  75. }
  76.